package com.wtp.wallpaper.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wtp.wallpaper.pojo.dto.PictureDTO;
import com.wtp.wallpaper.pojo.entity.Picture;
import com.wtp.wallpaper.pojo.query.PageQuery;
import com.wtp.wallpaper.pojo.vo.PictureVO;

import java.io.InputStream;
import java.nio.file.Path;
import java.util.List;

public interface PictureService extends IService<Picture> {

    List<PictureVO> randomWall();

    Page<PictureVO> getPageList(PageQuery pageQuery);
    List<PictureVO> getPageListByClassId(PageQuery pageQuery, long classId);

    Page<Picture> getPageListByPictureIds(Page<Picture> of, List<Long> pictureId);

    Page<Picture> getSearchWallByKeyword(PageQuery pageQuery, String keyword);

    void addOne(PictureDTO pictureDTO);

    void removePictureByIds(List<String> list);

    void update(PictureDTO pictureDTO);

    void addPictureBatch(Path path);

    Object[] isRepeat(InputStream inputStream);
}
